<div style="background-color: red; width: 300px">
    <table style="margin-left:auto; margin-right: auto">
        <tr>
            <th>
                Lorem ipsum
            </th>
        </tr>
    </table>
</div>